package cn.com.db.dao;


import cn.com.db.model.StoreSurface;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StoreSurfaceDao {
    void createStoreSurface(StoreSurface storeSurface);

    StoreSurface getStoreSurfaceById(@Param("id")String id);

    StoreSurface getStoreSurfaceOfStore(@Param("storeId")String storeId,
                                  @Param("surfaceId")String surfaceId);

    List<StoreSurface> getStoreSurface(@Param("store")String store,
                                 @Param("parent")String parent);

    Integer countStoreSurface(@Param("store")String store,
                           @Param("parent")String parent);

    void update(StoreSurface storeSurface);
}
